package game.value
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	import game.objects.TimeBoard;
	
	
	/**
	 * ...
	 * @author ytl
	 * 食物  各五個
	 *第一排:飲料 一杯  10000分
	 *第二排:烤雞 一碗   5000分
	 *第三排:果凍 一碗   1000分
	 *共80000分
	 *蟲子名稱      數量     速度      換道與否      一次吃幾碗
	 *蟑螂            1       1.5         是           2(單位)
	 *蒼蠅            2        2          否           1(單位)
	 *螞蟻            4        1          否           1(單位)
	 * 
	 *great-7000~8000
	 *good-5000~6999
	 *ok-4000~4999
	 *bad-4000以下
	 */
	public class GameValues extends Object
	{
		private var gameScore:int;
		public function getGameScore():Number { return gameScore; };
		private var gameTime:int;
		public function getGameTime():Number { return gameTime; };
		private var ScoreDrink:int;
		private var ScoreChicken:int;
		private var ScoreJelly:int;
		
		public var showPudding:Boolean = true;
		public var showChicken:Boolean = true;
		public var showDrink:Boolean = true;
		public var showTimeBoard:Boolean = true;
		public var showBugs:Boolean = true;
		public var gameOver:Boolean = false;
		public var keyboardAble:Boolean = true;
		
		public static const Drink:String = "ScoreDrink";
		public static const Chicken:String = "ScoreChicken";
		public static const Jelly:String = "ScoreJelly";
		
		public function GameValues() {
			gameTime = 30;
			gameScore = 80000;
			ScoreChicken = 5000;
			ScoreDrink = 10000;
			ScoreJelly = 1000;
		}
		
		public function printScore():void {
			trace("print score: "+this.gameScore);
		}
		
		public function subPoint(food:String, numbers:uint):void {
			if (food == GameValues.Chicken)
			{
				gameScore = gameScore - ScoreChicken*numbers;
			}
			else if (food == GameValues.Drink)
			{
				gameScore = gameScore - ScoreDrink*numbers;
			}
			else if (food == GameValues.Jelly)
			{
				gameScore = gameScore - ScoreJelly*numbers;
			}
			trace("GameScore:" + gameScore);
		}

	}
	
}